<template>
	<view class="use-rules">
		<view class="w-center">
			<rich-text :nodes="rules.content"></rich-text>
		</view>
	</view>
</template>

<script>
	import api from '@/api/home.js'
	export default{
		data(){
			return{
				rules: ''
			}
		},
		onLoad() {
			this.getUseRules();
			
			// #ifdef MP-ALIPAY
			// 支付宝小程序关闭页面下拉(默认开启下拉)
			my.setCanPullDown({ canPullDown:false });
			// #endif
		},
		methods:{
			getUseRules(){
				api.getUseRules().then(res=>{
					if(res.code == 1){
						this.rules = res.data
					}
				})
			}
		}
	}
</script>

<style>
</style>
